/*
 * @Date: 2023-08-11 09:31:50
 * @LastEditors: lyx
 * @LastEditTime: 2023-08-14 13:41:44
 * @FilePath: \sup-mini-app\src\services\post\index.ts
 * @Description:
 */
import SupRequest from "@/utils/api";

export function queryPostList(props) {
  return SupRequest({
    url: "/posts/query",
    method: "POST",
  });
}

export function queryPostDetailById(id: string) {
  return SupRequest({
    url: `/posts/${id}`,
    method: "GET",
  });
}
